package lastcontrnt.vivsualvm;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * -Xms600m -Xmx600m -XX:SurvivorRatio=8
 */
public class OOMTest {
    public static void main(String[] args) throws InterruptedException {
        List<Picture> pictures = new ArrayList<>();
        while(true){
            pictures.add(new Picture(new Random().nextInt(50*100)));
            Thread.sleep(5);
        }
    }
}
class Picture{
    char[] chars;
    Picture(int num){
        chars = new char[60*100];
    }
}